//
//  IGBindPhoneApi.m
//  jingdongfang
//
//  Created by MTiMac02 on 2017/9/8.
//  Copyright © 2017年 LJL. All rights reserved.
//

#import "IGBindPhoneApi.h"

@implementation IGBindPhoneApi

- (NSString*)requestUrl{
    return @"sys/bindPhone.action";
}

- (BOOL)isHttps {
    return YES;
}

- (id)requestArgument {
    return [self customArg];
}

- (id)customArg {
    if ([self.type integerValue] == 0) {
        return @{
                 @"uId": [IGUser getUid],
                 @"phone": _phone,
                 @"smsCode":_smsCode,
                 @"type":_type
                 };
    } else {
        return @{
                 @"uId": [IGUser getUid],
                 @"phone": _phone,
                 @"smsCode":_smsCode,
                 @"pwd":_pwd,
                 @"type":_type
                 };
    }
}

- (BOOL)isNeedHub {
    return YES;
}

@end

@implementation IGBindPhoneModel

@end

@implementation IGBlindResp

+ (BOOL)propertyIsOptional:(NSString *)propertyName {
    return YES;
}

@end

